﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptCoreLib;
using System.Windows.Controls;
using ScriptCoreLib.Shared.Avalon.Extensions;
using System.Windows;

namespace AvalonTycoonMansion.Shared
{
	[Script]
	public class TycoonMouse : ISupportsContainer
	{
		public Canvas Container { get; set; }

		public readonly Image City;
		public readonly Image Trees;

		public TycoonMouse()
		{
			this.Container = new Canvas { Width = 32, Height = 32, Visibility = Visibility.Hidden };

			var Mouse = new Image
			{
				Source = (KnownAssets.Path.Assets + "/mouse.png").ToSource(),
				Width = 24,
				Height = 24
			}.AttachTo(this);

			City = new Image
			{
				Source = (KnownAssets.Path.Assets + "/mouse_city.png").ToSource(),
				Width = 24,
				Height = 24,
				Visibility = Visibility.Hidden
			}.AttachTo(this).MoveTo(8, 8);

			Trees = new Image
			{
				Source = (KnownAssets.Path.Assets + "/mouse_trees.png").ToSource(),
				Width = 24,
				Height = 24,
				Visibility = Visibility.Hidden
			}.AttachTo(this).MoveTo(8, 8);
		}
	}
}
